package app.v1.wdt.mapper;

import app.v1.wdt.domain.pojo.WdtShopGroup;
import com.gitee.feizns.quickstart.mybatis.plus.QuickstartBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 店铺组映射
 * @author feizns
 * @since 2023/07/20
 */
@Mapper
public interface WdtShopGroupMapper extends QuickstartBaseMapper<WdtShopGroup> {

    /**
     * 通过商店编号查询
     * @param shopNo 商店编号
     * @return {@link WdtShopGroup}
     */
    @Select("SELECT * FROM wdt_shop_group WHERE shop_no = #{shopNo}")
    WdtShopGroup getByShopNo(@Param("shopNo") String shopNo);

}
